package com.itc.api.pojo.dao.User;


import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.*;
import jakarta.validation.constraints.NotNull;
import lombok.Builder;
import lombok.Data;



/**
 * 用户DAO
 *
 * @author Navcoo
 * @date 2024-04-24
 */
@Data
@Builder
@TableName("t_user")
public class UserDAO {

    /**
     * 用户Id
     * 主键Id
     */
    @TableId(value = "user_id",type = IdType.ASSIGN_ID)
    private String userId;

    /**
     * 姓名
     * 必填
     */
    @TableField(value = "name")
    @NotNull
    private String name;

    /**
     * 账户
     */
    @TableField(value = "account")
    @NotNull
    private String account;

    /**
     * 密码
     */
    @TableField(value = "password")
    @NotNull
    private String password;


    /**
     * 手机号
     */
    @TableField(value = "phone_number")
    private String phoneNumber;

    /**
     * 性别
     * 0:未知;1:男;2:女;
     */
    @TableField(value = "sex")
    @NotNull
    private Integer sex = 0;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private DateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private DateTime updateTime;

    /**
     * 状态
     * 0:删除;1:启用;2:停用;3:封禁;
     */
    @TableField(value = "status")
    @NotNull
    private Integer status = 1;
}
